#include <errno.h>
#include <stdio.h>
#include <stdlib.h>

#include <event2/event.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#include <event2/http.h>
#include <event2/http_struct.h>
#include <event2/util.h>


static void dump_evbuffer(struct evbuffer *buf)
{
	int len = evbuffer_get_length(buf);
	char *temp = new char[len];
	evbuffer_copyout(buf, temp, len);
	printf("response: \n%s\n", temp);
	delete []temp;
}


